﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Sample.JwtBearer.Api.Requests;

/// <summary>
/// 刷新 Token 请求 DTO
/// </summary>
public class RefreshTokenRequest
{
    /// <summary>
    /// 访问 Token
    /// </summary>
    [JsonPropertyName("access_token")]
    [Required(ErrorMessage = "access_token 必填")]
    public string AccessToken { get; set; } = string.Empty;

    /// <summary>
    /// 刷新 Token
    /// </summary>
    [JsonPropertyName("refresh_token")]
    [Required(ErrorMessage = "refresh_token 必填")]
    public string RefreshToken { get; set; } = string.Empty;
}
